home *** CD-ROM | disk | FTP | other *** search
- /*
- Script to send some commands to the testhost
- */
-
- options results
- if ~show('L','rexxsupport.library') then
- if ~addlib('rexxsupport.library',0,-30,0) then
- exit(20)
-
- if show('p','TESTHOST') then do
-
- say
- say "Sending command 'Date' ."
- address TESTHOST date
- if rc=0 then say result
- else say rc
- say
-
- delay(100)
- say "Sending command 'Author' ."
- address TESTHOST Author
- if rc=0 then say result
- else say rc
- say
-
- delay(100)
- say "Sending command 'add 1 2' ."
- address TESTHOST add 1 2
- if rc=0 then say result
- else say rc
- say
-
- delay(100)
- say "Sending command 'add 1' ."
- address TESTHOST add 1
- if rc=0 then say result
- else say rc
- say
-
- delay(100)
- say "Sending command 'add 123 456' ."
- address TESTHOST add 123 456
- if rc=0 then say result
- else say rc
- say
-
- /*delay(100)
- say "Sending command 'quit' ."
- address TESTHOST quit
- if rc=0 then say result
- else say rc
- say
- */
-
- delay(200)
- end
- else do
- say "Arexx Host 'TESTHOST' not found"
- say " You must run 'Host.rx' before running this script"
- end